package com.xqls.server.netty;

import com.xqls.server.dto.FluSoketCommonDto;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;

/**
 * Created by hdg on 2017/7/11.
 */
public class FluCommonEncoder extends MessageToByteEncoder {
    @Override
    protected void encode(ChannelHandlerContext channelHandlerContext, Object dto, ByteBuf byteBuf) throws Exception {

        if(dto instanceof FluSoketCommonDto){
            FluSoketCommonDto dta=( FluSoketCommonDto) dto;
           // dta.getEncode(byteBuf);
        }


    }



}


